package com.woniuxy.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName(value ="customer_coupon")
@Data
public class CustomerCoupon implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private Integer customerId;
    private Integer couponId;
    private String status; // UNUSED-未使用, USED-已使用, EXPIRED-已过期
    
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    
    private Date useTime;
    
    private static final long serialVersionUID = 1L;
}